﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System.Threading.Tasks;
using EveryBookies.Common;

namespace EveryBookies.View
{
    public partial class StartUpPage : PhoneApplicationPage
    {
        public StartUpPage()
        {
            InitializeComponent();
            this.Loaded += StartUpPage_Loaded;
        }

      async  void StartUpPage_Loaded(object sender, RoutedEventArgs e)
        {
            App.UniqueDevice = WebUtility.UrlEncode(UUID.GetDeviceID());
            await Task.Delay(TimeSpan.FromSeconds(3));
            NavigationService.Navigate(new Uri("/View/MainPage.xaml",UriKind.Relative));
        }
    }
}